# This sample code uses the Appium python client
# pip install Appium-Python-Client
# Then you can paste this into a file and simply run with Python
import null as null
from appium import webdriver
from appium.webdriver.common.touch_action import TouchAction

caps = {}
caps["automationName"] = "Appium"
caps["platformName"] = "android"
caps["platformVersion"] = "6.0"
caps["appPackage"] = "com.android.calculator2"
caps["appActivity"] = ".Calculator"
caps["deviceName"] = "oppo R9sk"

driver = webdriver.Remote("http://localhost:4723/wd/hub", caps)

TouchAction(driver).tap(x=140, y=1156).perform()
TouchAction(driver).tap(x=928, y=1126).perform()
TouchAction(driver).tap(x=null, y=null).perform()
TouchAction(driver).tap(x=null, y=null).perform()
TouchAction(driver).tap(x=353, y=1342).perform()
TouchAction(driver).tap(x=null, y=null).perform()

driver.quit()
